Optimal. Leaf size=85 \[ -\frac{2^{-n-3} \sin ^{-1}(a x)^n \left (-i \sin ^{-1}(a x)\right )^{-n} \text{Gamma}\left (n+1,-2 i \sin ^{-1}(a x)\right )}{a^2}-\frac{2^{-n-3} \left (i \sin ^{-1}(a x)\right )^{-n} \sin ^{-1}(a x)^n \text{Gamma}\left (n+1,2 i \sin ^{-1}(a x)\right )}{a^2} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0819761, antiderivative size = 85, normalized size of antiderivative = 1., number of steps used = 6, number of rules used = 5, integrand size = 8, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.625, Rules used = {4635, 4406, 12, 3308, 2181} \[ -\frac{2^{-n-3} \sin ^{-1}(a x)^n \left (-i \sin ^{-1}(a x)\right )^{-n} \text{Gamma}\left (n+1,-2 i \sin ^{-1}(a x)\right )}{a^2}-\frac{2^{-n-3} \left (i \sin ^{-1}(a x)\right )^{-n} \sin ^{-1}(a x)^n \text{Gamma}\left (n+1,2 i \sin ^{-1}(a x)\right )}{a^2} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 4635
Rule 4406
Rule 12
Rule 3308
Rule 2181
Rubi steps
\begin{align*} \int x \sin ^{-1}(a x)^n \, dx &=\frac{\operatorname{Subst}\left (\int x^n \cos (x) \sin (x) \, dx,x,\sin ^{-1}(a x)\right )}{a^2}\\ &=\frac{\operatorname{Subst}\left (\int \frac{1}{2} x^n \sin (2 x) \, dx,x,\sin ^{-1}(a x)\right )}{a^2}\\ &=\frac{\operatorname{Subst}\left (\int x^n \sin (2 x) \, dx,x,\sin ^{-1}(a x)\right )}{2 a^2}\\ &=\frac{i \operatorname{Subst}\left (\int e^{-2 i x} x^n \, dx,x,\sin ^{-1}(a x)\right )}{4 a^2}-\frac{i \operatorname{Subst}\left (\int e^{2 i x} x^n \, dx,x,\sin ^{-1}(a x)\right )}{4 a^2}\\ &=-\frac{2^{-3-n} \left (-i \sin ^{-1}(a x)\right )^{-n} \sin ^{-1}(a x)^n \Gamma \left (1+n,-2 i \sin ^{-1}(a x)\right )}{a^2}-\frac{2^{-3-n} \left (i \sin ^{-1}(a x)\right )^{-n} \sin ^{-1}(a x)^n \Gamma \left (1+n,2 i \sin ^{-1}(a x)\right )}{a^2}\\ \end{align*}
Mathematica [A] time = 0.019394, size = 75, normalized size = 0.88 \[ -\frac{2^{-n-3} \sin ^{-1}(a x)^n \left (\sin ^{-1}(a x)^2\right )^{-n} \left (\left (-i \sin ^{-1}(a x)\right )^n \text{Gamma}\left (n+1,2 i \sin ^{-1}(a x)\right )+\left (i \sin ^{-1}(a x)\right )^n \text{Gamma}\left (n+1,-2 i \sin ^{-1}(a x)\right )\right )}{a^2} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [C] time = 0.117, size = 138, normalized size = 1.6 \begin{align*}{\frac{\sqrt{\pi }}{4\,{a}^{2}} \left ( 2\,{\frac{ \left ( \arcsin \left ( ax \right ) \right ) ^{1+n}\sin \left ( 2\,\arcsin \left ( ax \right ) \right ) }{\sqrt{\pi } \left ( 2+n \right ) }}-{\frac{\sin \left ( 2\,\arcsin \left ( ax \right ) \right ) }{\sqrt{\pi } \left ( 2+n \right ) }{2}^{{\frac{1}{2}}-n}\sqrt{\arcsin \left ( ax \right ) }{\it LommelS1} \left ( n+{\frac{3}{2}},{\frac{3}{2}},2\,\arcsin \left ( ax \right ) \right ) }-3\,{\frac{{2}^{-3/2-n} \left ( 4/3+2/3\,n \right ) \left ( 2\,\arcsin \left ( ax \right ) \cos \left ( 2\,\arcsin \left ( ax \right ) \right ) -\sin \left ( 2\,\arcsin \left ( ax \right ) \right ) \right ){\it LommelS1} \left ( n+1/2,1/2,2\,\arcsin \left ( ax \right ) \right ) }{\sqrt{\pi } \left ( 2+n \right ) \sqrt{\arcsin \left ( ax \right ) }}} \right ) } \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F(-2)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Exception raised: RuntimeError} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [F] time = 0., size = 0, normalized size = 0. \begin{align*}{\rm integral}\left (x \arcsin \left (a x\right )^{n}, x\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int x \operatorname{asin}^{n}{\left (a x \right )}\, dx \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int x \arcsin \left (a x\right )^{n}\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]